package com.zjff.mobiletwo.tool;
import com.huaban.analysis.jieba.JiebaSegmenter;
import org.springframework.stereotype.Component;

import java.util.List;

@Component
public class JieBaTool {
    /**
     * 默认结巴分词
     * @param content 内容
     * @return list
     */
    public List<String>BaseJieBa(String content){
        JiebaSegmenter jiebaSegmenter = new JiebaSegmenter();
        List<String> list = jiebaSegmenter.sentenceProcess(content);
        return list;
    }
}
